function myUploadFile(options){
  return new Promise ((resolve,reject) => {
    let that = this;
    let picDownLoad = []
    for(var i = 0;i<options.feedbackImgArr.length;i++) {
      let thisName = options.feedbackImgArr[i]
      let thisIndex = thisName.lastIndexOf('/')
      // console.log(thisName.substr(thisIndex+1))
      wx.cloud.uploadFile({
        cloudPath: '兼职反馈截图/' + options.myPhone + '/' + thisName.substr(thisIndex+1),
        filePath: options.feedbackImgArr[i], // 文件路径
        success: res => {
          // console.log(res.fileID)
          let fileID = [];
          fileID.push(res.fileID)
          wx.cloud.getTempFileURL({
            fileList: fileID,
            success: data => {
              console.log(data.fileList)
              picDownLoad = picDownLoad
              picDownLoad.push(data.fileList[0].tempFileURL)
              resolve(picDownLoad)
            },
            fail: err => {
              reject(err)
              console.log(err)
            }
          })
        },
        fail: err => {
          console.log(err)
          // handle error
        }
      })
    }
  })
}
export { myUploadFile };